package cn.iocoder.yudao.module.pay.order.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.Map;

@Schema(description = "管理后台 - 付款单据提交 Request VO")
@Data
public class PayOrderSubmitReqVO {

    @Schema(description = "支付编号", example = "1863170925660639233")
    private Long id;

    @Schema(description = "支付单号", example = "PAY202412011838591")
    private String no;

    @Schema(description = "支付渠道：alipay_app、wx_lite、wallet", requiredMode = Schema.RequiredMode.REQUIRED, example = "wx_lite")
    @NotEmpty(message = "支付渠道不能为空")
    private String channelCode;

    @Schema(description = "支付渠道的额外参数，例如说，微信公众号需要传递 openid 参数，钱包支付需要传递 user_type 及 user_id 参数，条码支付需要传递 auth_code 参数", example = """
            {"openid":"ooths7V-WtbJ_w6aPJb4J2hl18OE"}
            """)
    private Map<String, String> channelExtras;

}
